/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v1912                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSolution;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

solvers
{
    p
    {
        solver          GAMG;
        tolerance       1e-06;
        relTol          0.01;
        smoother        GaussSeidel;
        nPreSweeps      2;
        nPostSweeps     2;
        nFinestSweeps   2;
        cacheAgglomeration false;
        nCellsInCoarsestLevel 10;
        agglomerator    faceAreaPair;
        mergeLevels     1;
    }

    // p
    // {
    //     solver amgcl;
    //     amgcl
    //     {
    //         options
    //         {
    //             check_after false;
    //             ns_search   true;
    //         }
    //         caching
    //         {
    //             matrix
    //             {
    //                 //update always;
    //                 update periodic;
    //                 periodicCoeffs
    //                 {
    //                     frequency 1;
    //                 }
    //             }
    //             preconditioner
    //             {
    //                 update always;
    //             }
    //         }
    //     }
    //     tolerance       1e-06;
    //     relTol          0;
    // }

    pFinal
    {
        $p;
        tolerance       1e-10;
        relTol          0;
    }

    U
    {
/*
        solver          smoothSolver;
        smoother        symGaussSeidel;
        tolerance       1e-08;
        relTol          1e-03;
*/
        solver          GAMG;
        tolerance       1e-06;
        relTol          0.01;
        smoother        GaussSeidel;
        nPreSweeps      2;
        nPostSweeps     2;
        nFinestSweeps   2;
        cacheAgglomeration false;
        nCellsInCoarsestLevel 10;
        agglomerator    faceAreaPair;
        mergeLevels     1;
    }
}

PISO
{
    momentumPredictor        no;
    nCorrectors     1;
    nNonOrthogonalCorrectors 3;
    pRefCell        0;
    pRefValue       0;
}

SIMPLE
{
    nNonOrthogonalCorrectors 3;
    pRefCell        0;
    pRefValue       0;
}

PIMPLE
{
    momentumPredictor   no;
    nOuterCorrectors    1;
    nCorrectors         1;
    nNonOrthogonalCorrectors 3;
    pRefCell            0;
    pRefValue           0;
    turbOnFinalIterOnly no;
}


relaxationFactors
{
    fields
    {
        p               1.0;
    }
    equations
    {
        U               1.0;
    }
}


// ************************************************************************* //
